package com.eaoa.uc.account.bo;

import com.eaoa.base.EABaseBusinessObject;
import com.eaoa.dao.pub.PubAccountDAO;
import com.eaoa.vo.pub.PubAccount;

public class AccountLockBO extends EABaseBusinessObject {

	private Long employeeno;
	private Long passworderrorcount;
	private String islock;

	private PubAccountDAO employeeDAO = new PubAccountDAO();

	public AccountLockBO(Long employeeno , String islock ,Long passworderrorcount ) {
		super();
		this.employeeno = employeeno;
		this.islock = islock;
		this.passworderrorcount = passworderrorcount;
	}

	protected void performBusinessLogic() {

		PubAccount po = (PubAccount) employeeDAO.loadAndLock(employeeno);
		po.setIslock(islock);
		po.setPassworderrorscount(passworderrorcount);

		employeeDAO.update(po);

	}

}
